<?php

namespace App\Http\Controllers;

use App\Repositories\WxNotifyRepository;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;

class WxNotifyController extends Controller
{
    protected $repository;

    /**
     * @param $repository
     */
    public function __construct(WxNotifyRepository $repository)
    {
        $this->repository = $repository;
    }


    public function notify($mall_id)
    {
//        Log::info($request->all());

//        Log::info(file_get_contents('php://input'));

//        return 'success';
        return $this->repository->notify($mall_id);
    }
}
